% Get the video property
function [info] = process(filename)

display(filename);
reader = VideoReader(filename);

nFrames = reader.NumberOfFrames;
vidHeight = reader.Height;
vidWidth = reader.Width;

display(nFrames);

% Read images
cur_image = struct('cdata', zeros(vidHeight, vidWidth, 3, 'uint8'), 'colormap', []);
addpath('colorspace')

info = [];

nSample = 7;
frameMult = idivide(int32(nFrames), nSample, 'floor');
each = 2;
for k = 1 : nSample
    frameId = k * frameMult;
    cur_image.cdata = read(reader, frameId);
    cieluv = colorspace('RGB->Luv', cur_image.cdata);
    
    tmp = [colordist(cieluv, vidHeight, vidWidth) colordist2(cieluv, vidHeight, vidWidth)];
    info = [info tmp];
    each = size(tmp, 2);
end
info = reshape(info, int32(each), []);
info = info';
